package cn.iocoder.yudao.module.blog.controller.admin.module.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;

/**
 * 论坛版块 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class BlogModuleBaseVO {

    @Schema(description = "名字", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @NotNull(message = "名字不能为空")
    private String name;

    @Schema(description = "版块分类", requiredMode = Schema.RequiredMode.REQUIRED, example = "闲聊")
    @NotNull(message = "版块分类不能为空")
    private String classityName;

    @Schema(description = "图片", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn")
    @NotNull(message = "图片不能为空")
    private String picUrl;

    @Schema(description = "板块描述", requiredMode = Schema.RequiredMode.REQUIRED, example = "你猜")
    @NotNull(message = "板块描述不能为空")
    private String description;

    @Schema(description = "板块分类显示权重", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "版块分类显示权重")
    private Integer classityWeight;

    @Schema(description = "板块显示权重", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "版块显示权重")
    private Integer moduleWeight;

    @Schema(description = "版块底图", requiredMode = Schema.RequiredMode.REQUIRED, example = "http://xxxx.png")
    private String bgUrl;

}
